package top.laoshuzi.designpatterns.base.structure.flyweight;

import org.junit.Test;

public class Client {

    @Test
    public void operation() {
        FlyweightFactory.getFlyweight("a").operation();
        FlyweightFactory.getFlyweight("b").operation();
        FlyweightFactory.getFlyweight("c").operation();
        FlyweightFactory.getFlyweight("a").operation();
        FlyweightFactory.getFlyweight("b").operation();
        FlyweightFactory.getFlyweight("c").operation();
        FlyweightFactory.getFlyweight("a").operation();
        FlyweightFactory.getFlyweight("b").operation();
        FlyweightFactory.getFlyweight("c").operation();
    }
}
